package com.lcf.app.rabbitmq.consumer.listener;

import com.lcf.common.model.MqConstant;
import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @author ChenFei
 * @date 2021/12/1
 */
@Slf4j
@Component
public class ReceiverListener {

    @RabbitListener(queues = MqConstant.DEFAULT_QUEUE)
    public void message(String message) {
        log.info("message : {}", message);
    }

}
